package com.ht.modules.alarmstatis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class AlarmEqu  implements Serializable {

    private Integer centreId;
    private Integer deviceId;
    private Integer unitId;
    private String centreName;
    private String deviceName;
    private String unitName;
    private String pointFrom;
    private Integer pointId;
    private String pointCode;
    private String pointName;
    private Integer pointCount;
    private Integer centreCount;
    private Integer deviceCount;
    private Integer unitCount;
    private BigDecimal pointCentreRate;
    private BigDecimal pointDeviceRate;
    private BigDecimal pointUnitRate;
    // 查询条件 -------------------------------------
    /**
     * 统计开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 统计结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 是否仅统计Top10
     */
    private Boolean isTop;
    /** TOP数量 */
    private Integer topNum;

    private List<Integer> centreIds;
    private boolean needAuthority = true;

    // 分组查询使用
    private String customGroupId;
    private String customGroupType;
    private List<Integer> idList;
}
